<?php

?>

<?php
//echo "<h1>Q1</h1>";
?>
<form class="form-horizontal" role="form" style="padding:10px">
  	<div class="h4 ">请问以下哪个符合您的情况？</div>
  	<div class="h5 "><span id='companyname1'>公司一</span></div>
  	<div class="radio">
		<label class="radio">
		<input type="radio" name="company1export" id="company1exporta" value="a"> 营业额中有50%来自生意出口<span>，请选择年份（可多选）</span>
		<select id="select_years" class="cls_select2_mt" name="select_years">

        </select> 
		</label>
		<label class="radio">
		<input type="radio" name="company1export" id="company1exportb" value="b" checked>没有出口生意
		</label>
		<label class="radio">
		<input type="radio" name="company1export" id="company1exportc" value="c">没能达到50%
		</label>
	</div>
	
	
	
  
</form>

<!--<form class="form-horizontal" role="form" style="padding:10px">
<div class="h5 "><span id='companyname2'>公司二</span></div>
  	<div class="radio">
		<label class="radio">
		<input type="radio" name="company2export" id="company2exporta" value="a"> 营业额中有50%来自生意出口，请选择年份（可多选）
		<select id="select_years2" class="cls_select2_mt" name="select_years">

        </select> 
		</label>
		<label class="radio">
		<input type="radio" name="company2export" id="company2exportb" value="b" checked>没有出口生意
		</label>
		<label class="radio">
		<input type="radio" name="company2export" id="company2exportc" value="c">没能达到50%
		</label>
	</div>
	
	
</form>-->

<script>
	$('.cls_select2_mt').select2({width:"100%",multiple: true});
	yearoptionhtml="";
	if(dataArr[3].company1turnover1>=500000)
	{
		yearoptionhtml+="<option value='2014'>2014</option>";
	}
	if(dataArr[3].company1turnover2>=500000)
	{
		yearoptionhtml+="<option value='2015'>2015</option>";
	}
	if(dataArr[3].company1turnover3>=500000)
	{
		yearoptionhtml+="<option value='2016'>2016</option>";
	}
	if(dataArr[3].company1turnover4>=500000)
	{
		yearoptionhtml+="<option value='2017'>2017</option>";
	}
	$("#select_years").html(yearoptionhtml);
	
	
//	yearoptionhtml2="";
//	if(dataArr[3].company2turnover1>=500000)
//	{
//		yearoptionhtml2+="<option value='2014'>2014</option>";
//	}
//	if(dataArr[3].company2turnover2>=500000)
//	{
//		yearoptionhtml2+="<option value='2015'>2015</option>";
//	}
//	if(dataArr[3].company2turnover3>=500000)
//	{
//		yearoptionhtml2+="<option value='2016'>2016</option>";
//	}
//	if(dataArr[3].company2turnover4>=500000)
//	{
//		yearoptionhtml2+="<option value='2017'>2017</option>";
//	}
//	$("#select_years2").html(yearoptionhtml2);
</script>